<template>
	<view class="content">
		<image class="backgroundImg" src="../../static/bg2.jpg" />
		<u-navbar :is-back="false" :title="title" :background="background" :title-color="titleColor"></u-navbar>
		<view class="title">节约资源，共筑绿色校园。</view>
		<view class="container-content">
			<view class="container-content-one" @click="toIssue()">
				<image src="../../static/issue.png"></image>
				<view>发布闲置</view>
			</view>
			<view class="container-content-two" @click="toOffer()">
				<image src="../../static/offer.png"></image>
				<view>发布悬赏</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: "添加闲置",
				titleColor: "#330867",
				background: {
					// 渐变色
					backgroundImage: 'linear-gradient(to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%, #fe9a8b 100%)'
				},
			}
		},
		methods: {
			toIssue() {
				uni.navigateTo({
					url: '/pages/issue/issue'
				});
			},
			toOffer() {
				uni.navigateTo({
					url: '/pages/offer/offer'
				});
			}
		}
	}
</script>

<style scoped lang="scss">
	.backgroundImg {
		position: absolute;
		left: 0;
		bottom: 0;
		display: block;
		width: 100%;
		height: 100%;
		z-index: -999;
	}

	.content {
		height: 100%;
	}

	.title {
		margin: 90rpx 0rpx 0rpx 50rpx;
		font-size: 46rpx;
		font-weight: bold;
	}

	.container-content {
		display: flex;
		justify-content: center;
	}

	.container-content>view {
		margin-top: 600rpx;
	}

	.container-content-one {
		margin-right: 90rpx;
	}

	.container-content-one>image {
		width: 125rpx;
		height: 125rpx;
	}

	.container-content-one>view {
		font-size: 28rpx;
		padding-left: 8rpx;
	}

	.container-content-two>image {
		padding-bottom: 7rpx;
		width: 110rpx;
		height: 110rpx;
	}

	.container-content-two>view {
		font-size: 28rpx;
		padding-left: 7rpx;
	}

	.container-content-two {
		padding-top: 8rpx;
		margin-left: 20rpx;
	}
</style>
